<?php
/**
 * CONTENIDO extension pack (mpContenidoX), consists of multiple classes to
 * provide more features for Plugins/Modules.
 *
 * @package     mpContenidoX
 * @subpackage  PluginInstaller
 * @author      Murat Purc <murat@purc.de>
 * @copyright   Copyright (c) 2008-2012 Murat Purc (http://www.purc.de)
 * @license     http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2
 * @version     $Id: MetaData.class.php 21 2012-07-16 21:33:14Z purcaholic $
 */


defined('CON_FRAMEWORK') or die('Illegal call');


/**
 * Meta data class
 *
 * @package     mpContenidoX
 * @subpackage  PluginInstaller
 * @author      Murat Purc <murat@purc.de>
 */
class mpPluginInstaller_MetaData
{
    private $_data = array();

    public function __set($var, $val)
    {
        $this->_data[$var] = $val;
    }


    public function __get($var)
    {
        return (isset($this->_data[$var])) ? $this->_data[$var] : null;
    }


    public function __isset($var)
    {
        return (isset($this->_data[$var]));
    }


    public function __unset($var)
    {
        if (isset($this->_data[$var])) {
            unset($this->_data[$var]);
        }
    }
}
